﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Evoucher.Business;

public partial class mock_PaymentGateway : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Session["ResNum"] = Request.Form["ResNum"];
        }
    }

    protected void btnPayment_Click(object sender, EventArgs e)
    {
        Random rnd = new Random();

        RemotePost post = new RemotePost("../Payment.aspx");
        post.Add("RefNum", rnd.Next().ToString());
        post.Add("ResNum", Session["ResNum"].ToString());
        post.Add("State", "OK");
        post.Post(this);
    }

    protected void btnCancel_Click(object sender, EventArgs e)
    {

    }
}